DescribeCheckWarningSummary
Description
Call this interface to view the statistics of baseline check results, such as the number of servers for baseline check, the number of baseline check items, and the latest check pass rate.
Request Method
POST
Request Path
/apsara/route/Sas/DescribeCheckWarningSummary
Request Parameters Common Parameters
Name | Location | Type | Required | Sample value | Description |
---|---|---|---|---|---|
Status | BODY | string | No | 1 | check item status. 1: failed 2: Validation 3: Passed 5: expired 6: Ignored |
TypeName | BODY | string | No | database | baseline primary type. |
PageSize | BODY | integer | No | 10 | when paging query, the maximum number of data is displayed on each page. |
StrategyId | BODY | long | No | 1 | baseline check policy ID. |
Lang | BODY | string | No | zh | the language type of the request and receive message. zh: Chinese en: English |
RiskStatus | BODY | integer | No | 1 | status of baseline check. 1: failed 3: Passed |
version | BODY | string | No | 2016-01-01 | version of api |
RiskName | BODY | string | No | Redis security baseline check | baseline check risk item name. |
SourceIp | BODY | string | No | 1.2.3.4 | access source IP address. |
CurrentPage | BODY | integer | No | 1 | page number when paging query. |
regionId | BODY | string | Yes | No sample value for this parameter. | region id |
Uuids | BODY | string | No | f03259d8-1e81-4fae-bcbb-275fb5****** | machine ID. |
Return data
Name | Type | Sample value | Description |
---|---|---|---|
RiskId | long | 1 | risk item ID. |
PageSize | integer | 10 | the number of data items displayed on each page in the result. |
RequestId | string | 00BD7CE2-284A-4534-BD09-FB69836DD750 | request ID of the result. |
CheckCount | integer | 10 | number of baseline check items. |
TypeAlias | string | database | the classification of baseline check items, such as database, system, weak password detection and middleware. |
Count | integer | 10 | number of detection items displayed on the current page. |
LowWarningCount | integer | 3 | the number of low-risk check items. |
RiskName | string | Redis password check | baseline check risk item name. |
SubTypeAlias | string | Redis check | risk item secondary classification. |
LastFoundTime | string | 2019-01-01 12:23:00 | the last time the baseline check was performed. |
MediumWarningCount | integer | 2 | the number of dangerous check items. |
TotalCount | integer | 100 | the total number of baseline checks. |
CurrentPage | integer | 1 | the page number of the current page displayed in the result. |
WarningMachineCount | integer | 11 | the number of assets with baseline risk items detected. |
HighWarningCount | integer | 1 | number of high-risk check items. |
Level | string | high | the risk level of the baseline check risk item. Contains the following grades: High risk medium risk Low risk |
WarningSummarys | array | No sample value for this parameter. | check item statistics details. |
Example
Successful Response example
{
"RiskId":"1",
"PageSize":"10",
"RequestId":"00BD7CE2-284A-4534-BD09-FB69836DD750",
"CheckCount":"10",
"TypeAlias":"database",
"Count":"10",
"LowWarningCount":"3",
"RiskName":"Redis password check",
"SubTypeAlias":"Redis check",
"LastFoundTime":"2019-01-01 12:23:00",
"MediumWarningCount":"2",
"TotalCount":"100",
"CurrentPage":"1",
"WarningMachineCount":"11",
"HighWarningCount":"1",
"Level":"high",
"WarningSummarys":""
}
Failed Response example
{
"errorSample":
{
"resultCode":-1,
"resultMsg":"system error",
"result":null
}
}